<?php
class thread_repliesModel extends RelationModel
{
    
    //自动完成
    protected $_auto = array(
        array('addTime', 'time', 1, 'function'),
    );
   
    
    protected $_link = array(
        'user' => array(
            'mapping_type' => BELONGS_TO,
            'class_name' => 'admin',
            'foreign_key' => 'userId',
            'mapping_fields'=>'realName,userName',
        )
    );

}